﻿/*
 * JavaScript function that opens a new window containing the big image of the selected game.
 *
 * @param
 * gameNr: The number of the game whose picture has to be loaded.
 * width: The width of the image.
 * height: The height of the image.
 */
function OpenWindow(gameNr, platform, width, height) {
    window.open('/Website/upload/' + gameNr + '/' + platform + '.jpg', '', 'width='
        + (width + 40) + ', height=' + (height + 40) + ', resizable=no, toolbar=0, menubar=0, scrollbars=yes');
}

/*
 * JavaScript function that clears a specified TextBox.
 *
 *@param
 *textBoxID: The ID of the specified TextBox.
 */
function ClearTextBox(textBoxID) {
    document.getElementById(textBoxID).value = "";
}

/*
 * JavaScript function that set's the default text back to a specified TextBox.
 *
 *@param
 *textBoxID: The ID of the specified TextBox.
 */
function TextBoxDefault(textBoxID) {
    if (textBoxID == "ctl00_txtSearch") {
        document.getElementById(textBoxID).value = "Zoekterm";
    }
}